package com.jinsi.mapper.lv;


import com.jinsi.pojo.Order;
import com.jinsi.pojo.OrderList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    public List<Order> getOrder(Order order);

    //查看全部订单
    public List<Order> getAll();



//    private int orderId;//序号
//    private String orderSite;//收货地址（省）
//    private String orderCity;//收货地址（市）
//    private String orderDistrict;//收货地址（区）
//    private String orderDetail;//收货地址（详细地址）
    //修改收货人信息
    public void getOrderSiteAmend(Integer orderId,String orderSite,String orderCity,String orderDistrict,String orderDetail);

    public void confirm(@Param("orderId") int orderId,@Param("orderStatus") int orderStatus);

    public  void addRess(Order order);
    //课程订单
    public List<Order> getCurr(Order order);

    public Order viewCourses(@Param("orderId") Integer orderId,@Param("orderType")String orderType);

    public List<Order> getReturnList(Order order);

    public List<OrderList> goodsCensus(String orderType);

    public List<OrderList> courseCensus(String orderType);

    public List<OrderList> refundCensus(List<Integer> list);
}
